<?php

namespace pmvc\mvc;

/**
 * Mapping interface that returns {@link Controller}s.
 *
 */
interface ControllerMapping {

	/**
	 * Returns a {@link MappedObject} that contains the mapping
	 * and a {@link Controller} that can handle the given {@link Request}.
	 * @param string $url the url
	 * @param Request $request
	 * @return MappedObject the mapping
	 */
	function getController($url, Request $request);
}

?>